package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.Video;
import com.domain.VideoTag;
import com.domain.VideoView;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface VideoDao extends BaseMapper<Video> {

    Integer batchAddVideoTags(List<VideoTag> videoTagList);

    List<Video> homeListVideo();

    List<Video> pageListVideo(Video params);


    VideoView getVideoView(Map<String, Object> params);

    void addVideoView(VideoView videoView);

    Integer getVideoViewCounts(Long videoId);

//    List<UserPreference> getAllUserPreference();
//
//    List<Video> batchGetVideosByIds(List<Long> idList);
//
//    void batchAddVideoBinaryPictures(@Param("pictureList") List<VideoBinaryPicture> pictureList);
}
